#ifndef _SPRITE_H_
#define _SPRITE_H_

#include "d3d9.h"
#include "d3dx9.h"

class Sprite
{
private:
	LPD3DXSPRITE _SpriteHandler;
	LPDIRECT3DTEXTURE9 _Image;
	int _Width;
	int _Height;
	int _Index;
	int _Count;
	int _SpritePerRow;
public:
	Sprite(LPD3DXSPRITE SpriteHandler, LPWSTR FilePath, int Width, int Height, int Count, int SpritePerRow );
	~Sprite(void);
	void Next();
	void Reset();
	void Render(LPDIRECT3DSURFACE9 Target, int x, int y, int alpha);
};

#endif